<template>
  <!--tabbar基本搭建-->
  <div class="tab-bar">
    <!-- <h2>tab-bar</h2> -->
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_home.png" alt=""></img>
      <span class="text">首页</span>
    </div>
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_favor.png" alt=""></img>
      <span class="text">收藏</span>
    </div>
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_order.png" alt=""></img>
      <span class="text">订单</span>
    </div>
    <div class="tab-bar-item">
      <img src="@/assets/img/tabbar/tab_message.png" alt=""></img>
      <span class="text">消息</span>
    </div>
  </div>
</template>

<script setup>

</script>

<style lang="less" scoped>
  .tab-bar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    height: 70px;
    display: flex;

    border-top: 1px solid #f3f3f3;
  }
  .tab-bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    .img {
      width: 30px;
    }

    .text {
      font-size: 11px;
      margin-top: 2px;
      margin-bottom: 2px;
    }
  }
</style>